import axios from 'axios';

// 上传到快手的API函数
export const uploadToKuaishouAPI = async (uploadData: any) => {
  try {
    const response = await axios.post('/kuaishou-api/api/v1/command', uploadData, {
      headers: {
        'Content-Type': 'application/json'
      }
    });
    return response.data;
  } catch (error) {
    console.error('上传到快手失败:', error);
    throw error;
  }
};